<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!--框架必需start-->
<script type="text/javascript" src="__PUBLIC__/libs/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/libs/js/framework.js"></script>
<link href="__PUBLIC__/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link href="__PUBLIC__/css/page.css" rel="stylesheet" type="text/css"/>
<link href="__PUBLIC__/libs/skins/blue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="blue"/>
<link rel="stylesheet" type="text/css" id="skin" prePath="/Public/"/>
<link rel="stylesheet" type="text/css" id="customSkin"/>
<!--框架必需end-->

<!-- 日期选择框start -->
<script type="text/javascript" src="__PUBLIC__/libs/js/form/datePicker/WdatePicker.js"></script>
<!-- 日期选择框end -->

<!--数字分页start-->
<script type="text/javascript" src="__PUBLIC__/libs/js/nav/pageNumber.js"></script>
<!--数字分页end-->


<style>
    * {
        margin: 0px;
    }

    body {
        background-color: #ddeffd;
        font-size: 12px;
    }
</style>
<!--浮动面板start-->
<script type="text/javascript" src="__PUBLIC__/js/attention/floatPanel.js"></script>
<!--浮动面板end-->

<!-- 
<div class="floatPanel" panelWidth="200"  panelHeight="40"  direction="br"
     init="show" beforeClickText="未读消息" afterClickText="未读消息"
     iframe="__APP__/message/UnreadMessages"></div>    
 -->   
 
<script>

    setInterval("GetNum()",120000);

    function GetNum(){
        get_url = "__APP__/message/GetUnreadMessagesNum";
        $.ajax({
            url:get_url,
            type:'POST',
            cache:false,
            dataType:"json",
            success:function(data,status){
                if(data.status == "success"){
                    if(data.errMsg>0)
                    {
                        //$('.floatPanel').animate({bottom:'-2px'});
                        //$('.floatPanel').css("bottom","-2px");
                        var content= document.getElementById("frmcontent");
                        content.src="__APP__/message/UnreadMessages";
                    }

                }
            }
        });
    }


</script>


